<div class="page-content" >
<div class="panel panel-default">
        <div class="panel-heading">
            <strong>子管理员</strong>
        </div>
        <div class="panel-body">
            <div id="toolbar" style="width: 100%;">
                <form id="filter" method="get"  class="form-horizontal">
                     
                    <div class="form-group">
                        <div class="col-sm-8">
                            <a href="<{:U('admin_add',array('memu'=>'admin_children'))}>" class="btn btn-default">
                                <i class="fa fa-plus"></i>
                                添加管理员
                            </a>
                        </div>
                         
                    </div>
                </form>
            </div>
       <div class="bootstrap-table">
		<div class="fixed-table-container" style="padding-bottom: 0px;"> 
			<div class="fixed-table-body"> 
				<table id="data-table" class="table"><thead>
			<tr>
			 
			<th style="" data-field="id"><div class="th-inner sortable both desc">ID</div><div class="fht-cell"></div></th>
			<th style="" data-field="name"><div class="th-inner ">用户名</div><div class="fht-cell"></div></th>
			<th style="" data-field="name"><div class="th-inner ">所属公司</div><div class="fht-cell"></div></th>
			<th style="" data-field="created_at"><div class="th-inner ">添加时间</div><div class="fht-cell"></div></th> 
			<th style="" data-field="id"><div class="th-inner ">操作</div><div class="fht-cell"></div></th>
			</tr></thead>
			<tbody>
			<volist name="data" id="vo">
			<tr data-index="0">
			<td style=""><{$vo.id}></td>
			<td style=""><{$vo.user_name}></td>
			<td style=""><{$vo.store.store_name}></td>
			<td style=""><{:date("Y-m-d H:i:s",$vo['pasttime'])}></td>
 
			<td style="">
			
			 <a  href="<{:U('access',array('admin_id'=> $vo['id'],'memu'=>I('memu')))}>" class="btn btn-primary btn-xs">分配权限</a>
                            <if condition="$vo.status eq 1">
                                <a  href="<{:U('admin_lock',array('id'=> $vo['id'],'status'=>0))}>" class="btn btn-primary btn-xs">禁用</a>
                            <else />
                               <a href="<{:U('admin_lock',array('id'=> $vo['id'],'status'=>1))}>" class="btn btn-primary btn-xs">恢复</a>
                            </if>
                                <a onclick="return confirm('确认需要删除些信息吗？');"  class="btn btn-primary btn-xs" href="<{:U('admin_del',array('id'=>$vo['id']))}>" >删除</a>
	 
			</td>
			</tr>
			</volist>
			</tbody></table>
			 </div> 
			  <include file="./Apps/BoxAdmin/View/Ace/Public/pager.html" />
		</div>
	    </div>
			<div class="clearfix"></div>
        </div>
    </div>
</div>	
	 